home *** CD-ROM | disk | FTP | other *** search
/ Pro Intralink 3.1 / Pro Intralink v3.1.iso / dsrc / templates / unix / u_start_pr_server_mp.tpl < prev    next >
Encoding:
Text File  |  2001-11-27  |  1.3 KB  |  53 lines

  1. // 13-Apr-98 $$1  JJE   Created.
  2. // 07-Aug-00 $$2  TWH   Add hpux11_pa32 check
  3. #!/bin/csh
  4.  
  5. if (0 == $?CDRS) then
  6.     echo "Environment variable CDRS must first be defined"
  7.     exit 999
  8. endif
  9.  
  10. if (-e $CDRS/install/unix/getpmt) then
  11.   set MACHINE_TYPE=`$CDRS/install/unix/getpmt`
  12. else
  13.   echo "$CDRS/install/unix/getpmt not found... exiting"
  14.   exit -1
  15. endif
  16.  
  17. if ( $MACHINE_TYPE == "hpux11_pa32" ) then
  18.   if ( ! -d $CDRS/hpux11_pa32/obj ) then
  19.     set MACHINE_TYPE="hp8k"
  20.   endif
  21. endif
  22. #
  23. ## Set path for PhotoRender executable.
  24. #
  25.  
  26. setenv PR_SERVER "$CDRS/$MACHINE_TYPE/obj/RenderServer -t PhotoRender"
  27.  
  28. #
  29. # For larger models, increase this number (max of 1000000)
  30. setenv MAX_POLYS 200000
  31.  
  32. #
  33. # For faster renderings, increase these numbers (max recommended is
  34. # 1952 width, 1040 height, uses more memory)
  35. setenv MAX_RENDER_WIDTH  1024
  36. setenv MAX_RENDER_HEIGHT 1040
  37.  
  38. # for multi-processor systems, increase to # of processors.
  39. #
  40. setenv MAX_PROCESSORS 32
  41.  
  42. #
  43. ### Starting up the PhotoRender Server.
  44. #
  45. #     Additional option which can be added below:
  46. #     -f /usr/tmp/tmp_shared_file_name
  47. #     -s 120000000
  48.  
  49. echo "$PR_SERVER -v -m $MAX_POLYS -n $MAX_PROCESSORS -w $MAX_RENDER_WIDTH $MAX_RENDER_HEIGHT &"
  50. $PR_SERVER -v -m $MAX_POLYS -n $MAX_PROCESSORS -w $MAX_RENDER_WIDTH $MAX_RENDER_HEIGHT &
  51.  
  52. exit
  53.